package com.yuang.library.action;

import android.Manifest;

/**
 * 作者：KD on 2021/7/13
 * <p>
 * 10:55
 */
public class Cons {

    public static String[] authority = {Manifest.permission.CALL_PHONE,
            Manifest.permission.READ_PHONE_STATE,
            Manifest.permission.READ_EXTERNAL_STORAGE,
            Manifest.permission.WRITE_EXTERNAL_STORAGE,
            Manifest.permission.ACCESS_COARSE_LOCATION,
            Manifest.permission.ACCESS_FINE_LOCATION};

    public static String deviceApkName = "";//子系统 apk路径

    public static String write = "{\"cwe\":1}";

    public static String sendJson = "{\"net\":[{\"ipid\":1,\"ip\":\"111.222.32.33\",\"port\":12345,\"en\":1}],\"devid\":\"AABBCCDD\",\"act\":[{\"adn\":\"awc\",\"acd\":1,\"acsd\":1,\"acl\":1,\"acc\":[{\"ace\":1,\"pri\":100},{\"ace\":2,\"pri\":100},{\"ace\":3,\"pri\":100}]}],\"drp\":{\"dpt\":2,\"dpp\":[{\"drn\":\"hh-mm\"},{\"drn\":\"hh-mm\"}]},\"hpr\":11,\"rt\":\"UP/\",\"sut\":[\"DW/设备ID/#\",\"DW/FFFFFFFF/#\"],\"wad\":\"AABBCCEE\",\"aaw\":123213,\"ltd\":\"123.222\",\"ltt\":\"22.2222\",\"wpc\":123,\"pdt\":1}";

    public static String[] ciTypeName = new String[]{
            "电池电压",
            "GPRS通讯网络信号质量",
            "GPS经度",
            "GPS纬度",
            "供电方式",
            "正累计流量",
            "负累计流量",
            "瞬时流量",
            "水表电池电压",
            "年累计用水量",
            "电表底数",
            "AB相电压",
            "AC相电压",
            "BC相电压",
            "AB相电流",
            "AC相电流",
            "BC相电流",
            "年累计电量",
    };

    public static String[] ciType = new String[]{
            "bv",
            "cq",
            "ltd",
            "ltt",
            "psm",
            "maf",
            "ncf",
            "fr",
            "mbv",
            "awc",
            "emb",
            "abv",
            "acv",
            "bcv",
            "abi",
            "aci",
            "bci",
            "aae",
    };

    //发送报数据
    public static int START_FUN_CODE = 1002;
    //升级中
    public static int ONGOING_FUN_CODE  = 1003;
    //完成中
    public static int UPDATE_FINISH_CODE  = 1004;

}